/********************************************************************
 * PROJECT: CSAIR ROST PROJECT.
 * SUPPLIER: FOREVER OPEN SOURCE SOFTWARE INC.
 ********************************************************************
 * FILE: GanttGridTaskData.java
 * (C) Copyright Foliage Team 2013, All Rights Reserved.
 ********************************************************************/
package org.foliage.rcp.ui.custom;

import java.util.Calendar;

import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Rectangle;
import org.foliage.rcp.ui.preference.GanttTaskSkin;

public class GanttGridTaskData {

	// ----------------------------------------------- 

	private Calendar lowerCalendar;

	private Calendar upperCalendar;

	private Rectangle bounds;

	private GanttTaskSkin skin;

	private Object data;

	private String text;

	private Image image;

	// ----------------------------------------------- 

	public GanttGridTaskData(GanttGridTask task) {
		this.lowerCalendar = task.getLowerCalendar();
		this.upperCalendar = task.getUpperCalendar();
		this.bounds = task.getBounds();
		this.skin = task.getSkin();
		this.data = task.getData();
		this.text = task.getText();
		this.image = task.getImage();
	}

	// ----------------------------------------------- 

	public Calendar getLowerCalendar() {
		return lowerCalendar;
	}

	public void setLowerCalendar(Calendar lowerCalendar) {
		this.lowerCalendar = lowerCalendar;
	}

	public Calendar getUpperCalendar() {
		return upperCalendar;
	}

	public void setUpperCalendar(Calendar upperCalendar) {
		this.upperCalendar = upperCalendar;
	}

	public Rectangle getBounds() {
		return bounds;
	}

	public void setBounds(Rectangle bounds) {
		this.bounds = bounds;
	}

	public GanttTaskSkin getSkin() {
		return skin;
	}

	public void setSkin(GanttTaskSkin skin) {
		this.skin = skin;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public Image getImage() {
		return image;
	}

	public void setImage(Image image) {
		this.image = image;
	}

}
